package com.drone.drone_server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("drone_action")
public class DroneAction {
    @TableId(value = "drone_action_id", type = IdType.AUTO)
    private Integer droneActionId;

    @TableField("drone_id")
    private Integer droneId;

    @TableField("route_id")
    private Integer routeId;

    @TableField("start_time")
    private Date startTime;

    @TableField("schedule_type")
    private String scheduleType;

    @TableField("which_day")
    private Integer whichDay;

    @TableField("enabled")
    private Boolean enabled;

    @TableField("create_time")
    private Date createTime;
}
